package com.shirley.designpattern.singleton;

/**
 * 懒汉式1 -- 线程不安全
 *
 * @author shirley
 */
public class Lazy1Singleton {
    private static Lazy1Singleton instance;

    private Lazy1Singleton() {
    }

    public static Lazy1Singleton getInstance() {
        if (instance == null) {
            instance = new Lazy1Singleton();
        }
        return instance;
    }
}